package router

import (
	"exam-day19/handler"
	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {

	r := gin.Default()

	r.POST("/login", handler.Login)
	r.POST("/add", handler.Add)
	r.GET("/list", handler.List)

	return r
}
